import request from "@/common/request/ajax.js";
// 用户登录
export function login(data) {
	return request({
		url: '/business/login',
		method: 'POST',
		data
	})
}

//用户退出
export function tokenLogout(params) {
	return request({
		url: '/auth/b/doLogout',
		method: 'GET',
		params
	})
}

// 商家登录
export function merlogin(data) {
	return request({
		url: '/mer/login',
		method: 'POST',
		data
	})
}

// 商家退出
export function merlogout(data) {
	return request({
		url: '/mer/logout',
		method: 'POST',
		data
	})
}